Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server only api #37

Closed
wants to merge 52 commits into from
Closed

Server only api #37

wants to merge 52 commits into from

Conversation

jaensen
Copy link
Contributor

@jaensen jaensen commented May 18, 2023

In this pull request I performed some major changes to the pathfinder code:

  • Removed everything that's not directly required for the current production setup
  • Improved the logging: Now shows the time, request-id, ip:port, function_name, graph-version, call-duration
  • Added a call context to bundle all resources required to process a rpc call.
  • Changed the way the different versions of the same EdgeDb are managed in worker threads

jaensen added 8 commits May 17, 2023 18:52
…lementation to rpc_functions.rs.

Added semi structured event call logging and track call durations.
…he pathfinder. Added a CallContext that contains the current graph for each call as well as log methods that associate the log message to the request-id and client.
@jaensen jaensen marked this pull request as draft May 18, 2023 12:08
src/types/safe.rs Outdated Show resolved Hide resolved
@chriseth chriseth mentioned this pull request May 25, 2023
@@ -78,7 +78,7 @@ pub fn start_server(listen_at: &str, queue_size: usize, threads: u64) {
thread::spawn(move || loop {
let socket = rec.lock().unwrap().recv().unwrap();
if let Err(e) = handle_connection(e.deref(), socket) {
println!("Error handling connection: {e}");
println!("Error handling connection: {}", e);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait what is this? I would have expected the opposite as that is the one recommended by cargo clippy.

@chriseth
Copy link
Collaborator

The "add capacity edges" commit looks good. Does it fix the issue?

@JacqueGM JacqueGM requested a review from llunaCreixent August 10, 2023 14:50
@benjaminbollen
Copy link
Member

benjaminbollen commented Oct 17, 2023

I tagged the deployed commit w v0.1.0-server+202308 and pushed it as a new branch current-prod so that it can live next to dev until the two have been re-integrated.

see #55

@benjaminbollen
Copy link
Member

I will close this PR as we temporarily will maintain dev and current-prod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants